package com.tuanzi.loan.business.service.receipt.product;

import com.tuanzi.loan.business.entity.receipt.product.ReceiptProductCondition;
import com.tuanzi.loan.business.entity.receipt.product.ReceiptProductInfo;
import com.tuanzi.loan.core.service.BaseAuditService;

public interface ReceiptProductConditionService extends BaseAuditService<ReceiptProductCondition, Long> {
	/**
	 * 根据产品id查找产品配置信息
	 *
	 * @param productId
	 *            产品id
	 * @return ProductCondition
	 */
	ReceiptProductCondition findReceiptProductConditionByProductId(Long productId);

	/**
	 * 根据产品信息查询用户的产品条件
	 * @param receiptProductInfo
	 * @return
	 */
	ReceiptProductCondition findReceiptProductConditionByProductInfo(ReceiptProductInfo receiptProductInfo);
}
